<div id="new-idea">
  <h1>Sign in</h1>

  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:id => "add-form"}) do |f| %>
   <% if resource.errors.any? %>
      <div class="message error_message">
        <h2><%= pluralize(resource.eradd-formrors.count, "error") %> prohibited this idea from being saved:</h2>

        <ul>
        <% resource.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
        </ul>
      </div>
    <% end %>
    <div class="inputs">
      <p>
        <%= f.label :email %>
        <%= f.text_field :email, :autofocus => true %>
      </p>
      <p>
        <%= f.label :password %>
        <%= f.password_field :password %>
      </p>
    </div>

    <div class="actions">
      <%= f.submit "Sign in" %>
    </div>
  <% end %>

  <%= render :partial => "devise/shared/links" %>
</div>
